Expand description

Simple implementations of a coap_request::Request

While the coap_request interfaces are geared toward portability, this crate provides implementations of the coap_request::Request trait that are easy to set up. They follow a builder pattern:

stack
    .to("[2001:db8::1]:5683".parse().unwrap())
    .request(
        coap_request_implementations::Code::get()
            .with_path("/.well-known/core")
            .processing_response_payload_through(|p| println!("Data: {:?}", p)),
    )
    .await;

§Stability

This crate is in an early experimental stage, do not expect these APIs to persist. (Then again, the crate that needs to be stable is coap_request, as a single stack can easily be used with request builders from multiple versions of this crate).

Structs§

  • A request that merely sends a code, and returns successful if the returned code as successful and no critical options were present.
  • A request that runs a user provided closure to read the response message’s payload.
  • A request that sets a request Uri-Path.
  • A request into which the user can populate a custom payload.

Traits§

  • A component that represents Uri-Path options.